﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using dotNetInteropPlugin.PluginDev;

namespace ManagedTestPlugin2
{
    [AIMPManagedPlugin("Test", "Author", 100, Description="normal")]
    public class PrimaryClass: MAIMPManagedPlugin
    {
        TestForm tstFrm = null;

        public override void Dispose()
        {
            tstFrm.Hide();
            tstFrm.Deinit();
            tstFrm.Dispose();
            tstFrm = null;
        }

        public override bool HasSettingDialog
        {
            get { return true; }
        }

  
        public override void Initialize()
        {
            tstFrm = new TestForm();
            tstFrm.InitForm(Player, "normal");
        }

        public override void ShowSettingDialog(System.Windows.Forms.IWin32Window ParentWnd)
        {
            tstFrm.Show();
        }
    }
}
